<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>编辑图书</title>
<%--	<base href=<%=str%>>--%>
	<base href="http://localhost:8080/book/">
<link type="text/css" rel="stylesheet" href="项目/static/css/style.css" >
<style type="text/css">
	h1 {
		text-align: center;
		margin-top: 200px;
	}
	
	h1 a {
		color:red;
	}
	
	input {
		text-align: center;
	}
</style>
</head>
<body>
<h1>${requestScope.pageNo}</h1></br></br>
</br></br></br></br></br>
		<div id="header">
			<img class="logo_img" alt="" src="项目/static/img/logo.gif" >
			<span class="wel_word">编辑图书</span>

			<%@include file="/项目/pages/quote/menu.jsp"%>

		</div>
		
		<div id="main">
			<form action = "manager/bookServlet">
				<table>
					<tr>
						<td>名称</td>
						<td>价格</td>
						<td>作者</td>
						<td>销量</td>
						<td>库存</td>
						<td colspan="2">操作</td>

					</tr>		
					<tr>
						<input type="hidden" name="id" value="${requestScope.book.id}">
						<input type="hidden" name="pageNo" value="${requestScope.pageNo}">

						<td><input name="name" type="text" value="${requestScope.book.name}"/></td>
						<td><input name="price" type="text" value="${requestScope.book.price}"/></td>
						<td><input name="author" type="text" value="${requestScope.book.author}"/></td>
						<td><input name="sales" type="text" value="${requestScope.book.sales}"/></td>
						<td><input name="stock" type="text" value="${requestScope.book.stock}"/></td>
						<input type="hidden" name="action" value="${empty requestScope.book.id?"add":"update"}">
						<td><input type="submit" value="提交"/></td>
					</tr>	
				</table>
			</form>

	
		</div>

		<%@include file="/项目/pages/quote/footer.jsp"%>
</body>
</html>